/*
 * 作者: 侯晓宇
 * 时间: 2017-01-24
 * 说明：
 * Copyright (c) 2016-2017 中研沃兮
 */
define(function(require) {

	require("jquery");
	require("blur");
	var c = require('app/utils/CommonUtils');
	var EventUtils = require('app/utils/EventUtils');
	var appInfo = require('app/AppInfo');
	var param = api.pageParam;
	var action = require('./action/UpdateRoomSimpleFrmAction');
	var RoomInfoUtils = require('app/utils/RoomInfoUtils');
	
	$('#room_starttime_cover').click(function(){
		action.starttime_input();
	});
	$('#room_des_cover').click(function(){
		action.des_input();
		EventUtils.listen(api.winName,'updateRoomDes',true)
   		.then(function(data){
   			$("#room_des").val(data);
   		});
		
	});
	
	action.roomtype_input();
	
	action.roomcatalog_input();
	
	action.weixinshare_input();
		
	action.showAdditional(1);

	//用于将选中的值传递给父窗体
	EventUtils.listenGather(function(){
		var msg = action.getRoomVal();
		//本地地址,/var/xxxx/.xxxx.jpg
		EventUtils.sendFrmVal(msg);
	});
	
	
	action.init();

	return;
});